module.exports = {
  assetsDir: 'src/assets',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8100',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
        }
      },
      '/avatar': {
        target: 'http://localhost:8100',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/avatar': '/storage/avatar'
        }
      },
      '/file': {
        target: 'http://localhost:8100',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/file': '/storage/file'
        }
      }
    }
  }
}
